package panelSites;

import guiParts.EmailSendGui;
import info.clearthought.layout.TableLayout;

import java.awt.Color;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JProgressBar;

public class SendingPanel extends JPanel implements PanelSitesIface {

	/**
	 * 
	 */
	private static final long serialVersionUID = 267009198606959709L;
	public JProgressBar progressBar;

	// fortschritt
	private JLabel fortschrittLabel = new JLabel("Fortschritt");

	public String getText() {
		// TODO Auto-generated method stub
		return null;
	}

	public void setText(String text) {
		// TODO Auto-generated method stub

	}

	public SendingPanel(EmailSendGui view) {

		fortschrittLabel.setBackground(Color.LIGHT_GRAY);
		fortschrittLabel.setOpaque(true);

		double size[][] = { { 150, TableLayout.FILL }, // Columns
				{ 10, 30, TableLayout.FILL } };// Rows

		TableLayout layout = new TableLayout(size);
		layout.setVGap(5);
		layout.setHGap(5);
		setLayout(layout);
		JPanel fillPanel = new JPanel();
		fillPanel.setBackground(Color.DARK_GRAY);

		progressBar = new JProgressBar(0, 100);
		progressBar.setValue(0);
		progressBar.setStringPainted(true);
		// Panel in the top-left corner
		JPanel containsPanel = new ContainsPanel(fortschrittLabel);

		add(fillPanel, "0,0, 1,0");
		add(containsPanel, "0,1");
		add(progressBar, "1,1");
		fillPanel = new JPanel();
		fillPanel.setBackground(Color.DARK_GRAY);
		add(fillPanel, "0,2 , 1,2");

	}

}
